package models;

import java.util.*;

import javax.persistence.*;

import play.db.jpa.*;

@Entity
public class Notification extends Model {
	@Lob
	String description;
	@ManyToMany
	List<User> notified;
	@ManyToOne
	Comment relatedComment;

	public Notification(String description, Comment relatedComment) {
		this.description = description;
		this.relatedComment = relatedComment;
		notified = new ArrayList<User>();
	}
}
